btpd client module (in python)