Fix most pylint errors.