Tools/Directories.py: Refactor evil imports