@home.before_app_first_request
def init_session_vars():
    session['check_metadata_status'] = 'green'
@home.before_app_first_request
def init_session_vars():
    session['check_metadata_status'] = 'green'