move to Python3, step 1

run 2to3 on every .py file
move to Python3, step 2

fix the remaining things (mainly unicode stuff)