MoI embedded inside CPython 3.91?

 From:  bemfarmer
10134.1 
Rhino 7 has rhino.inside python package, to Embed Rhino in CPython.

Anticipated workflow:
Integration domain of a curve network was easily created in MoI.
Lineweb-like script creates arrayed points of the curves.
Transfer the network .3dm to Rhino 7, (or the points).
Rhino 7 provides the geometry, (complex number 2D points), of curves in a network of Nurbs curves.
Rhino cmath and scipy apply a transformation to the points for each curve, and saves the interpcurves in a new Nurbs network.3dm.

Open the network.3dm and apply MoI Network command, to create a surface. Perform further surface geometry operations in MoI.

Javascript 2009, ES5 does not have any complex number math, and has limited number of decimals. Attempts to create javascript cPlex complex number math from mathJS has not been accomplished. arcsin(complex_number) does not work. Log(w) is weird. No idea if elliptic integral will work, or if ES5 has enough accuracy...
I doubt that if ES6+ were added to MoI version 5 that ES6+ would be much better with the math than ES5?

I'm 99% ignorant of Rhino7, and Python, but imagine the Rhino geometry commands would correspond analogously to MoI scripts...

Is there any possiblility of using cPython with MoI?
Or "embedding" MoI inside cPython?

Or I could export the 2D Points from MoI, to cPython, produce the new points, and import the new points into MoI?

- Brian
-Spring is comming.