I have this code:

import pymel.core as pm pm.ls(assemblies=True)

This code lists all the top nodes, including the default ones, like persp, top, front, side etc.

Is there any command which skips the default ones, without explicitly writing it manually.