Small changes to examples/client.py