Reimplemented Wrangler.doctest() around RunDoctestsScript.