def dispatch(self, event, *args, **kwargs):
<EOL>if event not in self._subscribers:<EOL><INDENT>return<EOL><DEDENT>for subscriber in self._subscribers[event]:<EOL><INDENT>subscriber.callback(*args, **kwargs)<EOL><DEDENT>
Emits an event if there are any subscribers.

        Args
            event (String): The event to be emitted
            args: Arguments linked with the event
            kwargs: Named arguments linked with the event