Currently, there is not a way to move the Python code to use it in a workflow, but I will create a feature request for this functionality.
This may not be what you are looking to do, but if you’d like to visualize and use the output data, you could would be to run the Python and send the output data to Losant, which is where the integration would happen. To accomplish this you would find or create a wrapper for the SDK to send data to Losant. Then you would create a workflow with a Trigger Node for the specified protocol, such as a Webhook or HTTP Trigger Node.
Hopefully this helps,