Passing a lister variable from a command script to an event script?

A) Script "maximize source pane"

:sunglasses: Script "viewer pane follow focus"

The script A (maximize source pane) itself works awesome and the same applies to script B (viewer pane follow focus). Unfortunately if both are enabled together there are some intereferences since script B is triggered multiple times by script A. Actually I already have seen broken DOpus layouts and some freezes due to these weird interactions of both scripts. Thus it would be nice to simply suspend script B as long as script A is running. Currently I use an artifical delay in the command script and these environment variable tricks in the event script which reduces the seen issues to an acceptable amount.