<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def append(self, event):
 """Add an event to the list."""

        self._events.append(event)
        self._events_by_baseclass[event.baseclass].append(event)