limiter: optionally callable limit argument

* Improves PEP8.
* Fixes flushing redis before tests.