[python3] Fix all most errors related tothe Sphinx doctests