Add ThreadedWorker
Fix pyflakes warning