Fix doctests on Python 3.2
Fix doctests on Python 2.6