Replace "dict.has_key(key)" with "key in dict"
dict.has_key(key) is deprecated and has been removed in Python 3.0. The "in" operator on dictionaries is supported since python 2.2.
The patch has been automatically generated with Python 2.6's 2to3 refactoring tool.