'Spyder Worker Manager for Generic Workers.'

def __init__(self, max_threads=10):

    super(QObject, self).__init__()
    self._queue = deque()
    self._queue_workers = deque()
    self._threads = []
    self._workers = []
    self._timer = QTimer()
    self._timer_worker_delete = QTimer()
    self._running_threads = 0
    self._max_threads = max_threads
    self._bag_collector = deque()
    self._timer.setInterval(333)
    self._timer.timeout.connect(self._start)
    self._timer_worker_delete.setInterval(5000)
    self._timer_worker_delete.timeout.connect(self._clean_workers)
