def compat_input(prompt):
 sys.stdout.write(prompt)
 sys.stdout.flush()
 return raw_input()

def compat_input ( prompt ) : sys . stdout . write ( prompt ) sys . stdout . flush ( ) return raw_input ( )
cygwins ptys are based on pipes .