avoid to hide some import exceptions
first py3 fixes
python3 fixes (redis still doesn't work for an encoding problem)