Line if argv != sys.argv: sys.argv = argv references a bare name argv that is never imported or defined anywhere in the file. Every invocation from the command line that passes through this branch will raise a NameError and crash before the REPL starts.
Line
if argv != sys.argv: sys.argv = argvreferences a bare nameargvthat is never imported or defined anywhere in the file. Every invocation from the command line that passes through this branch will raise a NameError and crash before the REPL starts.