How about explicitly declaring class attributes or reducing memory footprint of class variables. Slots seems to be an answer.
slots (__slots__) a special class variable that is assigned a sequence of strings that are variable names used by instance...