changed group translation s.t. it uses methods provided by translator.py
changed import_statge s.t. it calls amend_package. Additionally, I refactored some code in order to improve robustness.