import osimport sysfileno = sys.stdin.fileno()fileout = sys.stdout.fileno()fileerr = sys.stderr.fileno()print(fileno)print(fileout)print(fileerr)if fileno is not None: new_stdin = os.fdopen(os.dup(fileno))print(new_stdin)