Python Rate Limiter Implementation