Cleanup

lots of tiny changes to address pylint warning. I'll note the 2 bug fixes with line comments, but they are in branches of code that the Open Tree of Life web services don't hit (which is why they've gone unnoticed for a while...).