code: def kill(self, nb = 1):
          
          self.count_lock.acquire()
          if nb > self.workers:
              nb = self.workers
          self.count_lock.release()
          for x in xrange(nb):
              self.tasks.put(WorkerExit())
docs: Kill one or many workers.