[PATCH v2 40/60] buildman: Correct most pylint warnings in builderthread