mostly messing around with pyclient.py