Fix set_indexes in python binding.

Use dict.keys() as index names instead of values(), when dict is passed
to set_indexes.