Set active image node with python There's any way to change it directly by Python, or there's any way to set by Python what node image is the active to display in viewport (Textured) and bake?
Here is an example that creates a Texture Image Node for the material Material with Python:

import bpy

node_tree = bpy.data.materials['Material'].node_tree

node = node_tree.nodes.new("ShaderNodeTexImage")
node.select = True
node_tree.nodes.active = node


The new node is selected and made the active node of the node tree.