requests: Configure a retry handler for idempotent requests
Experience has shown that a transient request failures can be expected as the result of a variety of issues with DNS lookup timeouts, TCP connect timeouts, and server capacity. We can attempt to be more resilient in the face of these interruptions by installing a return handler in our requests.Session objects which will retry idempotent requests up to 5 times on failure with exponential backoff.