Python Requests for API Calls with Sessions, Timeouts and Error Handling