[2to3port] Edit api docs

Reuses: 7234e98ab1e109aa413ac8ba1e6f1f9075f4fb17