def _write(fp, lines):
with open(fp, '<STR_LIT:w>') as f:<EOL><INDENT>for l in lines:<EOL><INDENT>f.write(l)<EOL><DEDENT><DEDENT>return fp<EOL>
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