Simple Python class that can be used to use a dict as object