def bbox_path(svg): return pathdata.bbox(pathdata.parse(svg.d))
def tonumber_path(svg): svg.d = pathdata.parse(svg.d)