def _PromptForAdminCookie(user, pwd, otp_entry):
 if (user is None):
  user = raw_input('Please enter admin username: ')
 else:
  print ('Username: %s' % user)
 if (pwd is None):
  pwd = getpass.getpass('Please enter admin password: ')
 if (otp_entry is None):
  otp_entry = int(getpass.getpass('Please enter OTP code: '))
 return (user, pwd, otp_entry)

def _PromptForAdminCookie ( user , pwd , otp_entry ) : if ( user is None ) : user = raw_input ( 'Please enter admin username: ' ) else : print ( 'Username: %s' % user ) if ( pwd is None ) : pwd = getpass . getpass ( 'Please enter admin password: ' ) if ( otp_entry is None ) : otp_entry = int ( getpass . getpass ( 'Please enter OTP code: ' ) ) return ( user , pwd , otp_entry )
prompts the user to enter admin username / password and otp code .