minor delint, and begin createrepo the pythonic way
minor delint