Ghosting Left Behind (Bug)

Maybe you can adapt your script to work with this: Loading a gh file, executing it and harvesting its data - Grasshopper Developer - McNeel Forum