Learning python __getattr__& __slots__