Use jinja2 to implement pandas DataFrame to_html, to_latex, and to_string