Major formatting and stylistic changes

The code was passed through a formatter. Additionally, the project
configuration file was updated to enforce Python 3 grammar and more
explicitly use the Python 3.4 interpreter.