Swap operation mode Touch Designer python code

I’m working in Touch Designer and I’m stuck with this problem: I want the operations in a Comp in Tops to change every five seconds (or randomly). But you can only choose one operation at a time (for what I know). Is a Python code capable of controlling this? And if so where do I have to put this code in my TD-project?

Thanks Roel