Unwrap sys.stdin when running getpass

This is necessary on Windows, where the getpass implementation will
otherwise fall back to a method that echoes the password in the
terminal.