@ -12,7 +12,7 @@ def writeBml(anim, filename):
root.attrib['channels'] = str(anim.dimension.channels)
header = ET.Element('header')
for (name, val) in anim.tags:
for (name, val) in anim.tags.items():
elem = ET.Element(name)
elem.text = str(val)
header.append(elem)