def call_hook(self, hook, *args, **kwargs):
        """
        Calls each registered hook
        """
        for function in self.hooks[hook]:
            function.__call__(*args, **kwargs)
def call_hook ( self , hook , * args , ** kwargs ) : for function in self . hooks [ hook ] : function . __call__ ( * args , ** kwargs )
Calls each registered hook