Loading a gh file, executing it and harvesting its data

I tried to translate the script Runner in Python language but it doesn’t work. Can someone help me ? I’m close…
Runner.gh (5.5 KB)