Find out if there is input from a pipe or not in Python?,sys.stdin.isatty()