various pylint warning fixes