Rate Limiter Python Code For Snake