is there a way to poll a file handle returned from subprocess.popen?,sys.stdout.flush()