Access "Contour" component via ghpythonlib.components

I’d highly recommend sticking with RhinoCommon for geometry generation/manipulation in GHPython (there are many threads on this here and on the old GH forum). Both for simplicity and performance concerns.

Look up the source code of the rhinoscriptsyntax functions you need, two methods: