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.
It could and should probably be a command-line option, but I remember there being some issues with specifying utf-8 symbols via the command line and having to hardcode it instead. Perhaps I'm mistaken or I was just doing it wrong.