With respect to breaking long lines, please see https://github.com/edx/edx-platform/wiki/Python-Guidelines

It's more readable to be like
```
course.tabs = [
    {"type": "courseware"},
    ....
     {"type": "progress", "name": _("Progress")}
]
```