Yes, I tried to be as generic as possible. The nice thing about collections.Mapping is that it can be registered as superclass for any existing class without explicit inheritance.

If you are interested, in my code I am using a [case insensitive dictionary](https://github.com/coldfix/pydicti) to better handle the case insensitivity of madx commands.