def _get(self, endpoint):
    try:
        json_response = self.session.get((self._base_url + endpoint))
    except requests.exceptions.TooManyRedirects:
        self._cache_control_cache.delete((self._base_url + endpoint))
        json_response = self.session.get((self._base_url + endpoint))
    if (json_response.status_code == 404):
        return None
    json_data = json_response.json()
    return json_data
def _get(self, endpoint):
    try:
        json_response = self.session.get((self._base_url + endpoint))
    except requests.exceptions.TooManyRedirects:
        self._cache_control_cache.delete((self._base_url + endpoint))
        json_response = self.session.get((self._base_url + endpoint))
    if (json_response.status_code == 404):
        return None
    json_data = json_response.json()
    return json_data