is None, not == None. Also dict.get needs a default in RPython.