Only just started playing with Python and have managed to work out how to change all objects names after a ton of google searches.
for o in bpy.context.scene.objects: o.name = o.name.replace("grau", "Grey")
Seems to do what I want, but I can't find a way to rename materials for all objects in the same fashion.
Any help would be appreciated, thank you in advance.