Save an array of lines to a file.

    Args:
        lines: An array of strings that will be saved as individual lines.
        filename: Path to the output file.

def save_lines(lines, filename):
    """
    Save an array of lines to a file.

    Args:
        lines: An array of strings that will be saved as individual lines.
        filename: Path to the output file.
    """

    with open(filename, 'w', encoding='utf-8') as f:
        f.write('\n'.join(lines))