New Py2 treats empty branches in a tree differently that legacy py

When trying to copy paste a legacy python2 script to the new python2 component I found that it dealt with empty branches in a tree differently than the legacy.

The empty branches are ‘None’ in the new component and an empty list in the old one.