pep8 fixes

Another set of pep8 fixes
The comment above explicitly states that there is a reason why we are doing "ret == False". The functions are allowed to return a zero, which equals False. Using "is" will break code. Yes, it is odd, but it was the best solution @dopplershift and I could come up with.