Python 3 does not have .has-key on dicts