You could try this. Add "import time" (without the quotations) at the stop of the code. Then after everydelay you want, add "time.sleep(1)" (Again without the quotations) after every second you want a delay on Eg
and so on.
I'm not 100% if this would work for your use, but it is here.