A solution to have lists and dictionaries serialized using redis-py