Fix most pylint warnings