I am not really sure why you get no nodes here, here's what the docs say:
All node access is provides by parent nodes. This does not include the Root node as in 3ds Max. This method can be used to traverse the scene
- Returns:
- The number of parent nodes
Marsel Khadiyev (Software Developer, EPHERE Inc.)