docs: def _flatten_list(self, data):
          'Flattens nested lists into strings.'
  
          if data is None:
              return ''
          if isinstance(data, types.StringTypes):
              return data
          elif isinstance(data, (list, tuple)):
              return '\n'.join(self._flatten_list(x) for x in data)