``has_key`` has been deprecated in Python3, use simple ``in`` instead.

Found by 2to3 and python -3.