def write_lines(filepath, lines):
with open(filepath, '<STR_LIT:w>') as f:<EOL><INDENT>f.writelines(lines)<EOL><DEDENT>
Write the given lines to the file in filepath

    Parameters
    ----------
    filepath: str

    lines: list of str