inital code for jinja2 html extraction