Revert "got rid of boolean value comparison using == as stated in pep8 style guide" This reverts commit 3bd7717038.
3bd7717038