How to set a shared variable from data_callback in wakeword python example?

Most python examples seem to print out the sensor value on stdout.
How do I publish the sensor-value (wakeword data, in my case) to other threads? I want to control the color of lights by saying the wakeword for color “RED”, “BLUE” etc.

I see that utils.register_data_callback() - does not take an argument-placeholder for the callback-function. Otherwise I could have used one of the inter-process mechanisms from python’s multiprocessing library.

Thank you!