Replacing "!=/== None" to "is not/is None".