broker python receive event

Does anyone have an example of Bro sending events to a python script using python bindings? I’d like to generate an event in Bro and have the python script listen and kick off a script.

You can have a look at our BroCon 2018 material, which contain Broker
examples for C++, Python, and Bro:
https://github.com/tenzir/events/tree/master/brocon18.

    Matthias