init_app flask compliance