Try a port to Python 3

Executed 2to3 and small little modifications