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

I notice that you said this was developed under OS X. I needed this on Linux.