adding nodes

Yep.

Put them in 1 nodepath then call:
nodepath.flattenStrong()