Changed all "== None" and "!= None"

Changed all "== None" and "!= None" occurrences to comply to PEP8 and stop python 2.7 from giving FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.

Hi Zulko, just a small "style" change, if you find it useful...