I have hereby the attached the xml file I am trying to convert to csv
<?xml version="1.0"?>
<response>
<data>
<shops>
<shop id="204019">
<name>Bannockburn</name>
<status>Open</status>
<company id="25">Franchise</company>
<shopAttributes>
<shopAttribute attrName="shop_OPEN_DATE">2008-07-16</shopAttribute>
<shopAttribute attrName="CLOSE_DATE"/>
<shopAttribute attrName="shop_DISTRIBUTION_CTR_GENERAL" startDate="2019-03-19">90</shopAttribute>
<shopAttribute attrName="shop_DISTRIBUTION_CTR_GENERAL" startDate="1900-01-01" endDate="2019-03-18"/>
</shopAttributes>
<addresses>
<address type="PUBLIC">
<addressLine1>1211 Half Day Road</addressLine1>
<addressLine2></addressLine2>
<city>Bannockburn</city>
<stateProvince>IL</stateProvince>
<postalCode>60015</postalCode>
<country>USA</country>
<latitude>42.199461</latitude>
<longitude>-87.860582</longitude>
</address>
</addresses>
</shop>
<shop id="204020">
<name>Plainfield - North Plainfield</name>
<status>Open</status>
<company id="25">Franchise</company>
<shopAttributes>
<shopAttribute attrName="shop_OPEN_DATE">2007-05-18</shopAttribute>
<shopAttribute attrName="CLOSE_DATE"/>
<shopAttribute attrName="shop_DISTRIBUTION_CTR_GENERAL" startDate="2019-03-19">90</shopAttribute>
<shopAttribute attrName="shop_DISTRIBUTION_CTR_GENERAL" startDate="1900-01-01" endDate="2019-03-18"/>
</shopAttributes>
<addresses>
<address type="PUBLIC">
<addressLine1>12632 IL Route 59</addressLine1>
<addressLine2>Suite #102</addressLine2>
<city>Plainfield</city>
<stateProvince>IL</stateProvince>
<postalCode>60585</postalCode>
<country>USA</country>
<latitude>41.653125</latitude>
<longitude>-88.204527</longitude>
</address>
</addresses>
</shop>
</shops>
</data>
</response>
this is the xml file I want to convert to csv, can someone help me how to do it in python? Below is the code that I tried to use but I haven't really understood how to do it, saw some examples but it isn't very clear
from xml.etree import ElementTree
tree = ElementTree.parse('Store.xml')
root = tree.getroot()
for att in root:
first = att.find('shops').text
print('{}'.format(first))
but i was getting None here.