Retry decorator for Python 3
When your app relies on making API calls to external resources, you should expect that there will be network issues from time to time and you should prepare for them.
While these will be rare relative to the number of requests you're making, handling them early on could really save you a lot of headache in the future as your app usage grows. Many of these things can be easily handled with a simple retry …