code: def on_cpu_change(self, cpu, add):
          
          if not isinstance(cpu, baseinteger):
              raise TypeError("cpu can only be an instance of type baseinteger")
          if not isinstance(add, bool):
              raise TypeError("add can only be an instance of type bool")
          self._call("onCPUChange",
                       in_p=[cpu, add])
docs: Notification when a CPU changes.
  
          in cpu of type int
              The CPU which changed
  
          in add of type bool
              Flag whether the CPU was added or removed