Prompt for password if not given in command line or .netrc

Use python built-in `getpass` module to take password from terminal.