Fix dict_keys equality test for python 3.

This should have no effect for python 2, and causes the expected behaviour in python 3.