code: def _flatten(l):
      
      res = []
      for sublist in l:
          if isinstance(sublist, whaaaaat.Separator):
              res.append(sublist)
          else:
              for item in sublist:
                  res.append(item)
      return res
docs: helper to flatten a list of lists