Fixed doctests to make them pass on Python 3.2.