Apply 2to3 tool to support Python 3