Problem to create background in language other than English in the settings This is a script part that creates a background, i i run that in Blender with language default (English) run ok , but if i change for example in Spanish 
line 3 give error KeyError: 'bpy_prop_collection[key]: key "Background" not found' , because "Background" is translate to "Fondo".
Now i have not intention to translate all name for all languages, exist simple way to change that script to make work in another languages?

1- new_world = bpy.data.worlds.new('My background')
2- new_world.use_nodes = True
3- node = new_world.node_tree.nodes['Background']
Default nodes are in same order

Since you are looking at the default nodes created when setting a world to use nodes, then the zeroth item is the output node, and the first the background node.

Simply reference them on creation, rather than using a key. 

&gt;&gt;&gt; nw = bpy.data.worlds.new("xxxx")
&gt;&gt;&gt; nw.use_nodes = True
&gt;&gt;&gt; nw.node_tree.nodes[:]
[bpy.data...nodes["World Output"], bpy.data...nodes["Background"]]

&gt;&gt;&gt; output, bg = nw.node_tree.nodes
&gt;&gt;&gt; output
bpy.data...nodes["World Output"]

&gt;&gt;&gt; bg
bpy.data...nodes["Background"]


To translate

To find what blender translates from the english to the currently set locale,



&gt;&gt;&gt; bpy.app.translations.locale
'es'

&gt;&gt;&gt; nw.node_tree.nodes[:]
[bpy.data...nodes["Entorno"], bpy.data...nodes["Fondo"]]

&gt;&gt;&gt; bpy.app.translations.pgettext("World Output")
'Entorno'

&gt;&gt;&gt; bpy.app.translations.pgettext("Background")
'Fondo'