PEP8: don't compare booleans to True/False
PEP8: use blank lines consistently