change python syntax from == None to is None