Fix for py2exe

Py2exe discards docstrings, which seem to cause exceptions in the `format_doctest_out` decorator in py3compat.py.
In this case, `None` is passed.