apply 2to3 to all files

i.e. make the package compatibile with python3.