Now here is the weird thing: using the Workflow App, I can run a Pythonista script as part of a Workflow. A Workflow can be run from within the App, from a Share sheet, from the home Screen, from the today Widget. As a consequence, I can run Pythonista scripts in These Ways as well.
If Apple Allows this between Apps, i Would think that they permitted it within a Single App as well. Of Course i cannot read Apple's mind...who can 😒?