fixed redis tests for python 2