from multiprocessing import Process import sys def f(name): print 'hello', name sys.stdout.flush() ...
sys.stdout.flush()