'Make multiple settings changes and save them.'

def set_values(self, key_value_map):

    for (key, value) in key_value_map.iteritems():
        index = self._get_index_of(key)
        type_in_codemirror(self, index, value)
    self.save()
