PEP8

== None  ->  is None
!= None  ->  is not None