Grasshopper/Python Transition Help

Hello

I’m new with both Grasshopper and Python. In Rhino, I’ve made a Python script with generates a grid of cones that vary with attractor points. Then, after selecting the geometry the script allows you to shear these cones.

I’m trying to transfer this python script to Grasshopper to vary the degrees that the cones will shear using a number slider. Although, I’m not sure how to setup the grasshopper space so that it will receive my Python script and display it in Rhino space…
cone shear.py (1.4 KB)
shearrrrr.gh (13.3 KB)