pep8 fixes

Another set of pep8 fixes
`if ret is False or ret == 0:` (explicit check better)? This would seem to avoid the confusion..at least to me ;-)