conversion from python lists to tuples in redis to allow hashing
added some py.test tests