Small changes in `client.py` related to use of `Connection()`