class BaseHandler(webapp2.RequestHandler):

    def dispatch(self):
        self.session_store = sessions.get_store(request=self.request)
try:
    webapp2.RequestHandler.dispatch(self)
finally:
    self.session_store.save_sessions(self.response)

@webapp2.cached_property
def session(self):
    pass
Webapp2 Sessions in Google app engine