Pylint cleanup for threadpool