I just looked for one, and didn't find anything.  Happy to switch if you know of anything, though.  I needed this bit of code in the dailty_test.sh script anyways (which runs outside the django environment), so I just copy-pasted over.