chain of responsibility pattern class function class(object)def __init__(self)self next_to_execute catchall(def execute(selfrequest)print(requestrequest "join([ for in request if !' ']self next_to_execute execute(requestclass function class(object)def __init__(self)self next_to_execute catchall(def execute(selfrequest)print(requestrequest "join([ for in request if !' ']self next_to_execute execute(requestclass function class(object)def __init__(self)self next_to_execute catchall(def execute(selfrequest)print(requestrequest "join([ for in request if !' ']self next_to_execute execute(requestclass function class(object)def __init__(self)self next_to_execute catchall(def execute(selfrequest)print(requestrequest "join([ for in request if !' ']self next_to_execute execute(request