Working like a charm.
Imagine you have a converted max file to fbx and all those geometry pieces are registered as phong and the whole setup is glowing like a fairy.
You select all those pieces from outliner, paste to the script editor press enter and baaaam, its all lambert without breaking anything.
Thank you Vishal Ramesh, this script is a legend.