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