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