Currently, I have a script (through .py plug-ins in GIMP) that can generate an SVG path with a gradient (emulated by having multiple paths of the same path of varying widths and
It is not completely impossible, but you are restricted to pretty elementary cases and you have to jump through some pretty complicated hoops.
SVG knows only two types of gradients: linear and radial. You can align a linear gradient with a straight line, and a radial gradient with a circle or an arc with equal axis.
So you will need to cut up every path into individual segments and, if you need to connect straight lines, convert lines to polygons to provide for corners.