perl -i -pe 's/^from artiq import \*$/from artiq.experiment import */' your_experiments/*.py (assuming you skipped the changes form the previous commit)