<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_callbacks(app):
 """ Configure application callbacks """


    @app.before_request
    def before_request():
        """ Retrieve menu configuration before every request (this will return
            cached version if possible, else reload from database. """

        from flask import session

        #g.menusystem = helper.generate_menusystem()
        session['menusystem'] = helper.generate_menusystem()
        print session['menusystem']