def METHOD_NAME(self, serialised: str, filename: str) -> Tuple[List[str], List[str]]:
    parser = configparser.ConfigParser(interpolation = None)
    parser.read_string(serialised)
    # Update version numbers
    if "general" not in parser:
        parser["general"] = {}
    parser["general"]["version"] = "2"
    if "metadata" not in parser:
        parser["metadata"] = {}
    parser["metadata"]["setting_version"] = "2"
    # Re-serialise the file.
    output = io.StringIO()
    parser.write(output)
    return [filename], [output.getvalue()]