You don't need to write down the full path. This is more consistent:
import io from asciidoc3 import asciidoc3api asciidoc3_ = asciidoc3api.AsciiDoc3API(asciidoc3_py=asciidoc3api.__file__)