Update htpulsetorise.py