Thanks for the fast response

As long as del is appropriate (and doesn’t introduce bugs), I can live with that.
Indeed, I can overwrite modules with other modules; I shot myself in the foot because I’m trying to replace a module with a function.
That is indeed dirty, and I’ll think more about it.