Fix import bug: "NameError: global name 'getpass' is not defined"