pep8 fixes

Another set of pep8 fixes
How about `if not ret:` so pep8 is happy and it would also support `0` and `False`?