Pythonic implementation of the chain of responsibility pattern