def strip_tsv(path):
    """
    Strip unnecesaty lines from the given result TSV file.
    """
    def keep(line):
        """
        Returns false if the given line should be stripped.
        """
        if   line.startswith("Files already downloaded"): return False
        elif line.startswith("Train: epoch = ")         : return False
        else                                            : return True

    # Create stripped text.
    text = "\n".join([line.rstrip() for line in path.open("rt") if keep(line)])

    # Overwrite to the file.
    path.write_text(text)

    print(path, "done")