fixing client.py