py2 translation