from svgpathtools import svg2paths2
paths, attributes, svg_attributes = svg2paths2('test.svg')
print(paths)
print(attributes)