@cached_property
    def view(self):
        imported = import_string(self.import_name)

        if isinstance(imported, type) and issubclass(imported, View):
            view_name = self.import_name.lower().replace('view', '')
            return imported.as_view(view_name)

        return imported
Removes session, cache and error files
dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/flask_lazyviews/utils.py/LazyView.view--crossover with--dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/admin.py/app_cleanup