Python2 to Python3

To make HasyUtils compliant with Python2 and Pytrhon3, some changes had to be done. See

here