Redis flask with rate limiting