Py3 port

Hello xuy,

Thanks four your fabollous work! I made a desperate try to make it work with Python 3 and it looks fine. At least the example hs071.py gives the same result

I hope it is of any use!
E