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