class Listener(ListenerBase):

    def OnRecognition(self, _1, _2, _3, Result):
        """Callback whenever something is recognized."""

def OnHypothesis(self, _1, _2, Result):
    """Callback whenever we have a potential match."""
Consuming COM events in Python