code: def login(self, username, password, state=None, sync=True):
          
          auth = APIAuth(self.OAUTH_SCOPES)
  
          ret = auth.login(username, password, get_mac())
          if ret:
              self.load(auth, state, sync)
  
          return ret
docs: Authenticate to Google with the provided credentials & sync.
  
          Args:
              email (str): The account to use.
              password (str): The account password.
              state (dict): Serialized state to load.
  
          Raises:
              LoginException: If there was a problem logging in.