Prepare py3

Safe changes via 2to3 and futurize.