NodeRED and python

That fully depends on the conditions on when to execute those. Which would be helpful if you explained those. You can use a switch node to branch a flow depending on conditions, inject/trigger/delay nodes for time based execution/repeated action. For repeated execution following a time schedule you can look at the node-red-contrib-cron-plus node. For repeatedly executing following script output you use the output of the exec node followed by processing it and more conditional logic. Possibilities are near endless.