Automator - Run Python Script
Jonathan Wight has written an Automator action that lets you type Python code directly into an Automator workflow. It even provides syntax highlighting and Edit With BBEdit. PyObjC is used to help implement the action, and it’s also available to the code run by the action, so this should make it much easier to do interesting things from Automator.