PEP8 updates for code style violations

== None  ->  is None
!= None  ->  is not None
PEP8 code style updates throughout