Support rate limiting python

https://clever.atlassian.net/browse/API-68
would putting these in the `with` context be cleaner? initially looked strange to me to see `r` referenced outside of the with