It's hard to fix Python 3 code without Python 3 :)