__getitem__ is now equivalent to __getattr__