Tweak doctest for Jython 2.7b2 and 2.7b3

See http://bugs.jython.org/issue2007 (not the first time
we've had to avoid this Jython 2.7 beta X bug).
Minor docstring tweaks