why is this defined here, and not in `easybuild.tools.modules` ?
I would define this in the modules module, and then you can completely drop the import, thus allowing you to fix some circular dependencies.