def prompt_user_password():
 password = None
 if (hasattr(sys.stdin, 'isatty') and sys.stdin.isatty()):
  try:
   password = getpass.getpass('Password: ')
  except EOFError:
   pass
 return password

def prompt_user_password ( ) : password = None if ( hasattr ( sys . stdin , 'isatty' ) and sys . stdin . isatty ( ) ) : try : password = getpass . getpass ( 'Password: ' ) except EOFError : pass return password
prompt user for a password .