with open("modules/research_tab.py", "r", encoding="utf-8") as f: content = f.read() content = content.replace("stats_html, accumulated_report = _build_stats_html, accumulated_report", "stats_html = _build_stats_html") with open("modules/research_tab.py", "w", encoding="utf-8") as f: f.write(content)