dict.keys returns a dict_keys object in python 3.