Suppose you open a raw file the first time: this script adds proper modules.
Edit the image as you like in dt.
Now remove the file from dt e then import it again: this module applies again the same modules it had already applied in the 1st import.
I think that the script should check if it's the 1st import, and, if not, do nothing