> It's not possible to write Python scripts in Editorial's editor.
It is now.
It seemed like an interesting problem so I created two workflows: Save as Python... and Edit Python... to assist in the creation and editing of Python files that you can import your own Python scripts into your Editorial workflows.
Save as Python... writes the contents of the Editor into a Python file.
Edit Python... reads a Python file and places its contents into the Editor.
You can use Save to Python... to put my_script.py into place and then your "Run Python Script" task would be:
#coding: utf-8
import my_script, workflow
workflow.set_output(my_script.main(workflow.get_input()))
If you are editing Python files then you might want to force a reload to ensure your workflow is really importing your latest and greatest code:
import my_module_a ; reload(my_module_a)
import my_module_b ; reload(my_module_b)