Fix dict_keys equality test for python 3.