Set the class of an object (convenience function for setattr(obj, "class", CLASS)); can add instead of replace
setattr(obj, "class", CLASS)
Useful links