htclient.py