switching to python's standard string template format function to keep the html somewhat more self contained