Fixed python doctest.  Some behavior changes from 2to3