pep8 fixes

Mainly issues in long lines, long comments
fixed conditional to be pep8