def main () : for i in range(50) : doc = svg.Document(None) doc.set_viewbox('0 0 100 100') person = Person() doc = person.addToDocument(doc) with open(f'./Data/body{i+1}.svg', 'wb') as fd: fd.write(etree.tostring(doc.tree.getroot(), encoding='utf8', method='xml'))