Use an OrderedDict for labels instead of both a dict and a list of keys. Define labels as a class attribute.