code: def kill_all(self):
          
          for pid in self.children:
              try:
                  os.kill(pid, signal.SIGTRAP)
              except OSError:
                  continue
          self.join()
docs: kill all slaves and reap the monitor