Can we switch this to use the new format string syntax?
```python
key = u"permission_{user_id:d}_{course_id}_{permission}".format(
    user_id=user.id, course_id=course.id, permission=permission)
```