Don't use equality (or inequality) with None's.  Do "is" and "is not" instead.