change to python 3 and support translation