def _write(fp, lines):
    """
    Write a collection of lines to given file.

    :param str fp: path to file to write
    :param Iterable[str] lines: collection of lines to write
    :return str: path to file written
    """
    with open(fp, 'w') as f:
        for l in lines:
            f.write(l)
    return fp