Update client.py

Change protocol.