changed self.__class__ to KeyValueList