Fasheng, just write "if foo:", don't write "if (foo is True):" , () and 'is' is not neccessary.