Port to Python 3

Yet more fixes

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

mercurial