Rate Limiter exercise based on python, tornado and redis