[Python] How can I access sub-surfaces inside a polysurface?

I’m trying to loop over all objects and extrude each based on some criteria.
However when my script stumbles onto a polysurface the extrude is only applied to a single sub-surface.