Py3 compatibility on doctest