These commits are a bit more intrusive in your code. They consist into two major types:
Anyway, IMHO, these commits need to be tested before being merged into master.
first steps in pep8
pep8, up to the Process Information section
pep8, up to 'rules'
pep8 up to the last line \o/
data assigned but never used
has_key() is deprecated - use 'in'
I did the merge, please test.