how can i capture the stdout output of a child process?,sys.stdout.flush()