how to extract xml attribute using python elementtree,xml.find('./bar').attrib['key']