fixes another few linter warnings
pep8 whitespace
fix more docstrings quote style
removes lots of redundant parantheses
typo fixes
removes a couple of unused imports