Namedtuples are awesome for uses like this: http://docs.python.org/2/library/collections.html#collections.namedtuple