fix handling of redis.keys() as a list for python 3