2to3: Change use 'has_key' to 'key in'.

Part of the 2to3 project.
Merge pull request #3020 from charris/2to3-remove-has_key

2to3: Change use 'has_key' to 'key in'.