﻿with open("index.html", "r", encoding="utf-8") as f:
    html = f.read()

import re
html = re.sub(r'<script\s+src="reports\.js[^"]*"></script>', '<script src="reports.js?v=1007"></script>', html)

with open("index.html", "w", encoding="utf-8") as f:
    f.write(html)
