How do you apply Vray materials with python

A post was split to a new topic: Setting random materials