code: def get_session_token(self):
          
          # self.logging.info('Getting session token')
          # Rather than testing any previous session tokens to see if they are still valid, simply delete old tokens in
          # preparation of the creation of new ones
          try:
              os.remove(os.path.join(self.file_path, 'session_token'))
          except FileNotFoundError:
              pass
          # Create a new session
          session_request = OAuth1Session(self.consumer_key,
                                          self.consumer_secret,
                                          access_token=self.access_token,
                                          access_token_secret=self.access_secret)
          # Perform a GET request with the appropriate keys and tokens
          r = session_request.get(self.session_token_url)
          # If the status code is '200' (OK), proceed
          if r.status_code == 200:
              # Save the JSON-decoded token secret and token
              self.session_token = r.json()['oauth_token']
              self.session_secret = r.json()['oauth_token_secret']
              # Write the token and secret to file
              self.write_token('session_token', self.session_token, self.session_secret)
          # Any other status than 200 is considered a failure
          else:
              print('Failed:')
              print(r.json()['message'])
docs: Use the accession token to request a new session token