This looks like it's basically a class representing a dictionary with a __str__ method that tries to build something like a textual representation of a dictionary by using tuples.