'Run hooks that have been registered for given ``action``.
:param action: Name of action to run hooks for
:param kwargs: Keyword arguments that should be passed to the registered functions'

def run_hooks(self, action, **kwargs):

    for func in self._hooks[action]:
        func(self, **kwargs)
