code: def session(self):
          
          if self._session is None:
              self._session = requests.Session()
              self._session.headers.update(self._headers)
          return self._session
docs: Get session object to benefit from connection pooling.
  
          http://docs.python-requests.org/en/master/user/advanced/#session-objects
  
          :rtype: requests.Session