edSurface:     @staticmethod     def FromSelection():         selObjects = bpy.context.selected_objects         if len(selObjects) != 0: raise Exception("len(selObjects) != 0") # shouldn't be possible          blenderActiveCurve = bpy.context.active_object         blenderOtherCurve = selObjects[0]         if blenderActiveCurve == blenderOtherCurve: blenderOtherCurve = selObjects[0]          aCurve = curves.Curve(blenderActiveCurve)         oCurve = curves.Curve(blenderOtherCurve)          name = "TODO: autoname"          return 