PY3K: Fix client/server to work with python 3

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
(cherry picked from commit c313bf1d75ae4fa885cd099f299177d84dd8a95d)