Fix scan: the cursor is returned as a long in redis-py.

This caused --use-redis tests to hang.
Merge pull request #71 from mikekap/feature/fix_scan

Fix scan: the cursor is returned as a long in redis-py.