Updated client.py to support new style Sessions