https://www.owenrumney.co.uk/retry-urllib3-requests/
Adding retry logic to urllib3 Python code - Owen Rumney