Understand Flask-principal