pylint-driven changes ... removed unused imports, variables and methods, did some style corrections
more pylint cleanup -- broke up lines longer than 80chars