update comparison to follow pep8
Merge pull request #819 from dominiqueplante/master

update comparison check to follow PEP8