Nit fixes in client.py