re-remove python2 has_key check