In Lua you can address keys of the dictionary like attributes:

```
d = {a = 1, b = 1}
d['a'] == d.a -- this returns true

```

Is there something like that in Python? I've noticed that sklearn bunch objects have similar properties.