Fix a python 3 None comparison bug.