Fixes doctests to pass on python3.4