fixed module-level imports
PY3-compatible prints
bytes/string conversion in redis/json communication