model-view-controller pattern the following is simple genericview class that you can use as base for building your own viewsbe they for returning json to an http call or plotting graphs for data analysis class genericview(object)def __init__(self)pass def generate_response(selfdata)print(databringing it all together finallyhere is full program using the modelviewand controller to give you an idea of how these elements interact import sys class genericcontroller(object)def __init__(self)self model genericmodel(self view genericview(def handle(selfrequest)data self model get_data(requestself view generate_response(dataclass genericmodel(object)def __init__(self)pass def get_data(selfrequest)return {'request'requestclass genericview(object)def __init__(self)pass