cope with the new jinja and markupsafe releases