major update of translation.py