Enable/Disabel transaction group from script

Hello,

Is there a way to enable/disable a transaction group from a python script?
I don’t want to script the transactions triggers, it will be to complicate because I have a lot of transaction. I would like the user to be able to disable a transaction group from the UI.

Thanks