Knowing nothing more about this codebase than the above, I would fire everyone and make the CEO's nephew write it. It could hardly turn out worse and it would be a lot cheaper.
One of their expectations is that the attributes have their definition order stored somewhere. You may either use the decorator method, or the metaclass method
(I'm joking, but only barely.)