removed unusued imports
shebang and utf-8
moved application flow inside a "main"; getpass takes a prompt
uniform % to format
PEP8 style