code: def parse_keypair_lines(content, delim='|', kv_sep='='):
      
      r = []
      if content:
          for row in [line for line in content if line]:
              item_dict = {}
              for item in row.split(delim):
                  key, value = [i.strip("'\"").strip() for i in item.strip().split(kv_sep)]
                  item_dict[key] = value
              r.append(item_dict)
      return r
docs: Parses a set of entities, where each entity is a set of key-value pairs
      contained all on one line.  Each entity is parsed into a dictionary and
      added to the list returned from this function.