Run through pylint and fix various errors.