Pv2for hlt

HLT changes required by PR #1547, including a py fix in HI.
This PR includes and superseeds #1547.