Mimic Invenio flask application