Fixed python 2to3 translation