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, 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