Fix more pylint errors and warnings.