I mean - it's XML so you could go that way and extract the d element from path element?
But there seems to be a lot of SVG specific tooling and code to do this in python?
Eg: https://github.com/RaubCamaioni/svgpath