You can add project-specific initialization code in the init function exposed by app.py:
init
app.py
nano ${PACKAGE}/app.py