The action is intended for use in other apps on the app store. Because it places the text in a custom pasteboard type, it is not possible to extract the text from the Shortcuts app.
Sorry, I have no experience with Pythonista. The feature was designed to be used with Swift/Objective C, which means you’ll need an iOS development environment set up.