Python 3 doesn't have has_key.
Hack.