This is one way to do it:
import git
repo = git.Repo('path/to/your/repo')
print repo.git.diff('ec04352', 'b945e6c', **{'name-status': True})
It is, however, going through the backdoor.
You should be able to do something like this:
a = repo.commit('ec04352')
b = repo.commit('b945e6c')
diffs = a.diff(b)
>>> a
<git.Commit "ec04352">
>>> b
<git.Commit "b945e6c">
>>> print diffs[0]
zip/JSONzip.java
=======================================================
lhs: 100644 | d8e3ac652a5a5158692fa5fc131340c03dffd08e
rhs: 100644 | 220686de3dcb0dd17a54cbc5f8e44df261b664d5
>>>
You'll need to play with the Diff object to figure out the difference.