fix __setattr__ for new-style classes

Unbreak product installation (broken in 1d0101b).