Python 2to3 applied
Chenges towards full python 3 support