Write the html template

    :param dict data: the dict containing all data for output
    :param str results_dir: the ouput directory for results
    :param str parent: the parent directory

def write_template(data, results_dir, parent):
    """Write the html template

    :param dict data: the dict containing all data for output
    :param str results_dir: the ouput directory for results
    :param str parent: the parent directory
    """
    print("Generating html report...")
    partial = time.time()
    j_env = Environment(loader=FileSystemLoader(os.path.join(results_dir, parent, 'templates')))
    template = j_env.get_template('report.html')

    report_writer = ReportWriter(results_dir, parent)
    report_writer.write_report(template.render(data))
    print("HTML report generated in {} seconds\n".format(time.time() - partial))