import bs4
import functools
from htmlmin.minify import html_minify

def prettify(route_function):
    @functools.wraps(route_function)
    def wrapped(*args, **kwargs):
        yielded_html = route_function(*args, **kwargs)
        soup = bs4.BeautifulSoup(yielded_html, 'html.parser')
        return soup.prettify()

    return wrapped

def uglify(route_function):
    @functools.wraps(route_function)
    def wrapped(*args, **kwargs):
        yielded_html = route_function(*args, **kwargs)
        minified_html = html_minify(yielded_html)
        return minified_html

    return wrapped

@@ -269,19 +269,12 @@
 l, '
-html.parser
+lxml
 ')%0A 

Update minify_output.py