Alternative doctest implementation that extracts comments to modules