python wrap for hts engine