title: Parse svg:path d attribute
body: <p>I need to decipher a path element in an SVG document to drive a CNC machine along that path. I wonder if there are any Python libraries that parse SVG and give some sort of pythonic list for the d attribute, e.g.:</p>
  
  <pre><code>&lt;path d="M 20 30 L 20 20 20 40 40 40"/&gt;
  </code></pre>
  
  <p>parses into</p>
  
  <pre><code>[["M", 20, 30],
   ["L", 20, 20],
   ["L", 20, 40],
   ["L", 40, 40]]
  </code></pre>