Fix usage of equality operators for None.

That type of comparisons should always be done with
"is" or "is not", never the equality operators.
Merge pull request #5 from berkerpeksag/fix-none-usages

Fix usage of equality operators for None.