def namespaceInfo(*args, **kwargs):
    pyNodeWrap = kwargs.get('lod', kwargs.get('listOnlyDependencyNodes', False) )
    if pyNodeWrap:
        kwargs.pop('dp', False)
        kwargs['dagPath'] = True

    res = cmds.namespaceInfo(*args, **kwargs)
    
    if any( kwargs.get(x, False) for x in ('ls', 'listNamespace',
                                           'lod', 'listOnlyDependencyNodes',
                                           'lon', 'listOnlyNamespaces') ):
        res = _util.listForNone(res)
        
    if pyNodeWrap:
        import general
        nodes = []
        for x in res:
            try:
                nodes.append(general.PyNode(x))
            except general.MayaNodeError:
                # some ui objects/tools - like '|CubeCompass' -
                # get returned... so just ignore any nodes we can't create
                pass
        res = nodes
    
    return res

#-----------------------------------------------
#  Translator Class
#-----------------------------------------------
Modifications:
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/system.py/namespaceInfo