Python Code for the SporphSpaceMorph feature

Hello, I’m trying to code the Sporph feature in python while adding the possibility to choose the direction to keep when morphing. “Constrain normal” option is available in Rhino command “flowalongsurface” but not in Grasshopper component.

Currently my python code output is a boolean instead of morphed geometry, and I need to add that constrain normal option.

If someone can help me to write a proper code that would be great and helpful !
Thank you.