Can we use format strings instead?
```python
return u"i4x://{org}/{name}/{url}".format(org=org, name=course_name, url=urlname)
```