change classes in objects to new style classes