It’s quite hard to tell what’s going on there. When you’re running a GHPython component in SDK mode you output by calling return at the end of the RunScript method. See Giulio’s old example here:
When you have several outputs you simply return as many variables (e.g. return ham, spam, eggs). On a side note I’d recommend running in procedural mode unless there’s a good reason not to.