More Python 3 rework

Port to Python 3

Yet more fixes

(0) -100 -30 -10 -3 +3 +10 tip

mercurial