Rate limiting without timer (http://en.wikipedia.org/wiki/Token_bucket) - python code is partially from here : http://stackoverflow.com/questions/667508/whats-a-good-rate-limiting-algorithm