Wrapper for Python's doctest module