Nitpick: this seems like it would be nicer as:
```python
new_dir = "{course_dir}_deleted_{timestamp}".format(course_dir=cdir, timestamp=int(time.time()))
```