Use 'is not' instead of != wherever appropriate

Fixes some issues caused by me not speaking python :-)
Merge pull request #54 from miska/master

Use 'is not' instead of != wherever appropriate