make redis mode python3 compatible