Code modernization

Replaced all instances of % formatting with str.format. Also ran resulting code through a barrage of pep8 compliance fixes. Mostly code aesthetic changes.
Ok. I had left it out because it was commented out above, but didn't see any place where it was redefined to add any meaning in the string. Do you think the option is best served by commenting out one or the other?