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