Run python script with on of the automatic shutdown scripts

Hi There

I know there are two Plugins for automatic shutdown:


And there is my own python script, signal.py. Now I would like to run this script together with one of the plugins but which one is the best for the job and how?

Thank you