Returns the :class:`Event` at ``name``.

        If no event is registered for ``name`` creates a new :class:`Event`
        object and returns it.

def event(self, name):
        """Returns the :class:`Event` at ``name``.

        If no event is registered for ``name`` creates a new :class:`Event`
        object and returns it.
        """
        events = self.events()
        if name not in events:
            events[name] = Event(name, self, 0)
        return events[name]