def set10_method(self, args, kwargs):
    (name, val, desc) = self.validate_args(args, kwargs)
    if val:
        self.held_object.values[name] = (1, desc)
    else:
        self.held_object.values[name] = (0, desc)
def set10_method(self, args, kwargs):
    (name, val, desc) = self.validate_args(args, kwargs)
    if val:
        self.held_object.values[name] = (1, desc)
    else:
        self.held_object.values[name] = (0, desc)