```cn['class'].fred``` is likely an ```AttributeError```. 

```cn['class']``` is the class ```A```.  ```A``` doesn't have an attribute named ```fred```