port doc/translator.py and src/laguages.py to be Python 3 compatible