code: def generate_edit_credentials(self):
          
          params = {
              'action': 'query',
              'meta': 'tokens',
              'format': 'json'
          }
          response = self.s.get(self.base_url, params=params)
          self.edit_token = response.json()['query']['tokens']['csrftoken']
  
          return self.s.cookies
docs: request an edit token and update the cookie_jar in order to add the session cookie
          :return: Returns a json with all relevant cookies, aka cookie jar