setattr()
setattr(object,key,value)
Set a named attribute on a object;
setattr(x,y,v) is equivalent to "x.y=v"