Define outputs from within the ghpython code

See this answer on a related discussion. I do not suggest you go down this path, but rather use the Tree BANG! component, that David keeps up-to-date for you.