Casting dict_keys to list before returning them