Using the C API of Python, all data received in the broker is translated to a Python Object, and will be transmitted to the event handler implemented in Python.