use doctest instead of nosetest