Reworked event_c module

TODO: Adapt Python side to the changes