It seems a new codex SDK for python is being cooked:
Mentioned in Codex 0.115.0
How to experiment with it: