Databases taste better with Python.
That IPython project I was kicking around has started to mature, and I've released it into PyPI:
ipython_doctester
I'm much happier with using it as a decorator, it stays out of the student's way that way: