MVC implmentation in python