Run Speed in Dynamo

try to do more stuff with codeblock or in a python script:
like replace the flatten node with:
image
or the list create node.
Less information lines are better.