Fix minor spelling mistake
Use PEP8 convention for boolean statements