Accessing the `Repeated_indexes` attribute isn't really the standard way to interact with repeated fields in palm. You can actually just keep the `index_pairs` list and do (later in the code):

```
content.indexes.set(index_pairs)
```