code: def append(self, lines, index=-1):
          
          if isinstance(lines, (basestring, bytes)):
              lines = [lines]
          return self.request('nvim_buf_set_lines', index, index, True, lines)
docs: Append a string or list of lines to the buffer.