model-view-controller pattern def generate_response(selfdata)print(datadef main(name)request_handler genericcontroller(request_handler handle(nameif __name__ ="__main__"main(sys argv[ ]now that we have clear picture of what each of the object classes should look likelet' proceed to implement the code in our example for this in terms of these object classes as we have done thus farwe will lead with the controller object controller py import sys from model import namemodel from view import greetingview class greetingcontroller(object)def __init__(self)self model namemodel(self view greetingview(def handle(selfrequest)if request in self model get_name_list()self view generate_greeting(name=requestknown=trueelseself model save_name(requestself view generate_greeting(name=requestknown=falsedef main(main)request_handler greetingcontroller(request_handler handle(nameif __name__ ="__main__"main(sys argv[ ]