`ret[item.attrib['name']] = item.attrib` would be a bit more efficient