import bpy, os
scene=bpy.context.scene
result={'nodes':[(ng.name,ng.bl_idname,len(ng.nodes),len(ng.links)) for ng in bpy.data.node_groups], 'comp_prop':scene.compositing_node_group.name if scene.compositing_node_group else None, 'render_comp':scene.render.use_compositing, 'mats':[(m.name,m.use_nodes) for m in bpy.data.materials], 'objs':[(o.name,o.type,o.hide_render) for o in bpy.data.objects[:15]], 'world':scene.world.name if scene.world else None}