code: def app_authorize(self, account=None, flush=True, bailout=False):
          
          with self._get_account(account) as account:
              user = account.get_name()
              password = account.get_authorization_password()
              if password is None:
                  password = account.get_password()
              self._dbg(1, "Attempting to app-authorize %s." % user)
              self._app_authenticate(account, password, flush, bailout)
          self.app_authorized = True
docs: Like app_authenticate(), but uses the authorization password
          of the account.
  
          For the difference between authentication and authorization
          please google for AAA.
  
          :type  account: Account
          :param account: An account object, like login().
          :type  flush: bool
          :param flush: Whether to flush the last prompt from the buffer.
          :type  bailout: bool
          :param bailout: Whether to wait for a prompt after sending the password.