support for checkpython thanks to doctest