You'd probably be better off using [GitPython](http://pythonhosted.org/GitPython/0.3.2/tutorial.html) rather than using `subprocess` to call the `git` binary. We already have GitPython in our requirements files, so it should already be installed.