I have a subroutine which opens a terminal and runs a script.
It looks like this
on run_python() tell application "Terminal" set