Imported SVG is PShape GROUP, cannot convert to ArrayList of PVector

In my quest to derive parametric functions of shapes I wrote some codes. Maybe this one will be of interest to you. You just draw a dark colored shape on a bright background and load this bitmap into the program. Then you can edit the beziers anchor and control points. Right clicking the anchor points will remove them. Afther that you can print the code to the console. I took your image to Gimp and filled the shape with a black color. This was the printed code:

shp1 = createShape(PShape.PATH);
shp1.beginShape();
shp1.vertex(273.0, 31.0);
shp1.bezierVertex(301.0, 39.0, 276.0, 66.0, 305.0, 80.0);
shp1.bezierVertex(338.16666, 88.166664, 451.0, 71.0, 472.0, 80.0);
shp1.bezierVertex(459.0, 100.0, 307.0, 93.0, 305.0, 115.0);
shp1.bezierVertex(306.0, 132.0, 327.16666, 156.83333, 341.0, 157.0);
shp1.bezierVertex(354.83334, 157.16667, 372.0, 126.0, 388.0, 116.0);
shp1.bezierVertex(414.0, 120.0, 403.0, 141.0, 399.0, 154.0);
shp1.bezierVertex(390.16666, 165.0, 350.33334, 173.83333, 349.0, 189.0);
shp1.bezierVertex(370.0, 231.0, 392.0, 230.0, 394.0, 259.0);
shp1.bezierVertex(376.0, 306.0, 318.0, 323.0, 320.0, 340.0);
shp1.bezierVertex(350.0, 439.0, 404.0, 441.0, 394.0, 455.0);
shp1.bezierVertex(329.0, 448.0, 283.0, 382.0, 288.0, 343.0);
shp1.bezierVertex(291.0, 302.0, 346.0, 285.0, 351.0, 261.0);
shp1.bezierVertex(359.83334, 246.0, 336.0, 230.66667, 329.0, 220.0);
shp1.bezierVertex(272.83334, 186.33333, 279.0, 207.0, 259.0, 215.0);
shp1.bezierVertex(261.0, 226.0, 299.0, 232.0, 301.0, 253.0);
shp1.bezierVertex(279.0, 258.0, 255.0, 239.0, 224.0, 242.0);
shp1.bezierVertex(192.0, 260.0, 185.33333, 282.0, 186.0, 305.0);
shp1.bezierVertex(186.66667, 328.0, 214.0, 347.0, 201.0, 402.0);
shp1.bezierVertex(194.0, 417.0, 179.66667, 430.0, 170.0, 414.0);
shp1.bezierVertex(165.0, 363.0, 145.0, 328.0, 139.0, 296.0);
shp1.bezierVertex(152.5, 245.83333, 173.0, 248.0, 182.0, 221.0);
shp1.bezierVertex(166.0, 195.0, 158.0, 175.0, 163.0, 146.0);
shp1.bezierVertex(191.0, 99.0, 246.0, 104.666664, 258.0, 91.0);
shp1.bezierVertex(257.0, 68.0, 256.0, 34.0, 272.0, 31.0);
shp1.endShape();