code: def parse_attributes( fields ):
      
      attributes = {}
      for field in fields:
          pair = field.split( '=' )
          attributes[ pair[0] ] = pair[1]
      return attributes
docs: Parse list of key=value strings into a dict