Frist steps to make code compatible with python3
Fix numerous string/bytes handling problems
Fix more string/byte issues

* Use bytes instead of str in a couple of places in client.py
* Update tests in server_commans.py to expect bytes