Update client.py

Updating Python 2.x unicode handling to Python 3.x bytes