Fix coding style with pylint

This gets pretty far with [Pylint](http://pylint.org).