at newlines are not added. lines can be any iterable object producing bytes-like objects. This is equivalent to calling write() for each element.