Rhino- Precompute grasshopper python script

This might do the trick for you: