Tips for getting started loading and batch segmenting files with Slicer in python?

Thank you!
That script got me well ahead and working.
I do have two follow up questions now, but they’re rather distinct so I’ve made them new questions:

  1. Remove largest island functionality?
  2. Export volume (or segment?) to stl file with python