Use 'is not' instead of != wherever appropriate

Fixes some issues caused by me not speaking python :-)