infra: improve python3 compatibility
sphinx: support ecosystem builds