Added threads to python client