code: def login(username, password, catalogId='EE'):
      
  
      payload = {
          "username": username,
          "password": password,
          "authType": "",
          "catalogId": catalogId
      }
  
      return json.dumps(payload)
docs: This method requires SSL be used due to the sensitive nature of
      users passwords. Upon a successful login, an API key will be
      returned. This key will be active for one hour and should be
      destroyed upon final use of the service by calling the logout
      method. Users must have "Machine to Machine" access based on
      a user-based role in the users profile.
      
      :param username:
      
      :param password: