rename html to a template file, changed the python so that it writes a percentage into the html