Fix trivial PyLint errors, disable others

There are a few real errors remaining when `make pylint` is run. This should be dealt with after merge.