code: def _get_url(self, session, uri):
          
          url = session.url
          if uri:
              slash = '' if uri.startswith('/') else '/'
              url = "%s%s%s" % (session.url, slash, uri)
          return url
docs: Helper method to get the full url