[PATCH 00/58] buildman: Refactor code and correct some pylint warnings