Make doctests support Python 3