code: def threaded(callback, listargs):
      
      threads, results = [], []
      job_is_done_event = Event()
      for args in listargs:
          args += [results, len(results)]
          results.append(None)
          threads.append(Thread(target=callback, args=args, kwargs=dict(job_is_done_event=job_is_done_event)))
          threads[-1].setDaemon(True)
          threads[-1].start()
      while not job_is_done_event.is_set():
          if all([not t.is_alive() for t in threads]):
              break
          time.sleep(0.05)
  
      return [r for r in results if r is not None]
docs: Returns the result of <callback> for each set of \*args in listargs. Each call
          to <callback> is called concurrently in their own separate threads.
  
          Parameters:
              callback (func): Callback function to apply to each set of \*args.
              listargs (list): List of lists; \*args to pass each thread.