pep8 and pylint cleanups using  'flake8 --max-line-length=99 .'

working towards introducing flake8 checking in travis