I know this isn't part of your change, but would you mind cleaning up this indexing a bit? Python has a built-in function called `enumerate` that will help keep track of indexes when looping over an iterable. So instead of doing
```python
static_tab_idx = 0
for tab in course_item.tabs:
    # do stuff
    static_tab_idx += 1
```
You can do:
```python
for index, tab in enumerate(course_item.tabs):
    # do stuff
```
I also think that `index` is a clearer name than `static_tab_idx`, if that isn't already clear. :)