What scripting currently allows you to access is the shape/shape3D instances of the current frame, not the pattern3D collection. The shape3D has more or less the same property set as the pattern3D and filled by the linked pattern3D before modified by scripting. To semi-automatic changing geo-type and other properties, you could use "Track" feature or Property Slots.