I think this entire block would be better written as:

```python
m.Course(**course).save()
if m.Course.objects.with_id(course['id']):
    source['updated'] += 1
else:
    source['added'] += 1
```

... then you'll have to change where we print out `source['ignored']` and replace that with `source['updated']`.