Fixing more pylint errors and warnings.