I am not able to follow.
AFAIK, Pulumi CLI is a go binary. For python projects, CLI runs the python code to get the configuration, which is then applied to infra by the go binary.
With the Python API, the CLI is still needed. But instead of the execution being controlled by shell, its happens via python. I don’t know how it works exactly, never dived into it deeply. I could be very wrong as well :)
Can there be issues if I have a python program execution subprocesses and Pants?