Used getpass so that passwords aren't echoed; updated print() statement to be python3-compatible