Refactored script i18n.py