project.py: Cleaned up pylint/pep8 violations
project.py: Cleaned up pylint/pep8 violations

I noticed when running pylint (as the SUBMITTING_PATCHES file directs)
that there were a number of violations reported. This makes it difficult
to see violations I might have introduced. This commit corrects all
pylint violations in the project.py script.

This script now has a pylint score of 10.0, and no violations reported
by pep8.

Change-Id: I1462fd84f5b6b4c0dc893052671373e7ffd838f1

nuclearmistake/repo,GerritCodeReview/git-repo,jingyu/git-repo,11NJ/git-repo,11NJ/git-repo,couchbasedeps/git-repo,lewixliu/git-repo,GerritCodeReview/git-repo,gabbayo/git-repo,mer-tools/git-repo,qioixiy/git-repo,chzhong/git-repo,lipro-yocto/git-repo,jingyu/git-repo,mer-tools/git-repo,lewixliu/git-repo,chenzilin/git-repo,chenzilin/git-repo,gabbayo/git-repo,frogbywyplay/git-repo,wavecomp/git-repo,dodocat/git-repo,frogbywyplay/git-repo,qioixiy/git-repo,testbetta/git-repo-pub,dodocat/git-repo,codetutil/git-repo,nuclearmistake/repo,testbetta/git-repo-pub,couchbasedeps/git-repo,TheQtCompany/git-repo,aosp-mirror/tools_repo,wavecomp/git-repo,codetutil/git-repo,aosp-mirror/tools_repo,lipro-yocto/git-repo,TheQtCompany/git-repo,chzhong/git-repo