Monkey-patch Flask-Mako instead of copy-pasting it