HTCPCP implementation for Python