import sys with open('tmp_home.html', 'r') as f: content = f.read() # Replace Credentials background color old_str_4 = """
""" new_str_4 = """
""" content = content.replace(old_str_4, new_str_4) with open('tmp_home.html', 'w') as f: f.write(content) print(f"Credentials replaced: {old_str_4 in content}")