I am new to both Blender and Python, I am trying to enable Use Nodes of a lamp from Python console.
I tried the tooltip showing on the button bpy.ops.cycles.use_shading_nodes
, it did not give me an error, but also did not really enable the nodes(no change in UI), and I cannot change lamp strength using:
C.object.data.node_tree.nodes['Emission'].inputs['Strength'].default_value = 100