'Write a sequence of strings to the file. The sequence can be any
iterable object producing strings, typically a list of strings. There
is no return value.
(The name is intended to match readlines(); writelines() does not add
line separators.)'

def writelines(self, iterable):

    write = self.write
    for line in iterable:
        write(line)
