def isa(self, *args, **kwargs): if args and self.data != args[0]: return False for key, value in kwargs.items(): if self.getFeature(key) != value: return False return Truespa