def __init__(self, event_type, data=None):
        """
        The constructor accepts an event type as string and a custom data
        """
        self._type = event_type
        self._data = data

        The constructor accepts an event type as string and a custom data
        
recipes/Python/577432_Simple_event_dispatcher/recipe-577432.py