Py3 has_key Fixes

dict.has_key('key')
to
'key' in dict