Pythonic complex event processing