replace if "a == None" calls with if a is None