py2/py3: stop using deprecated has_key().

2 jobs for for_testrunner_2
in 0 seconds, using 0 compute credits, and was queued for 0 seconds