Add max function as filter to jinja2