import os from multiprocessing import Pipe import sys import time
def child(w): msg = ("Spam").encode() os.write(w, msg)