Removed the max_retries as it has been removed from requests