Could you save the Marshmallow instance (`self`) on the `app.extensions` dictionary instead? 
```python
app.extensions['marshmallow'] = self
```