PY3K: Fix client/server to work with python 3

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>