Python3 compatibility with the 2to3 tool