Python 3 compat

dict.has_key was removed in Python 3 in favour of the "in" operator