API call - implement retry mechanism into python requests library / try-except using Python requests module