pep8 fixes
adding some logging