I think this change may do what you need:
```
-        courses = dict([c.id, c] for c in courses)  # no course directory
+        courses = dict([c.to_deprecated_string(), c] for c in courses)  # no course directory
```
that should print out the deprecated string (eg, MITx/3.086x/2014_Spring)