pyclient connection