Moved import configuration handling to importtools.py