Update linter/buildbot versions. Refactor code for PEP8.