Python script executable opened by text editor
Removing the file's extension should cause the file to open in your default terminal application. Alternately, you could select "All Applications" from the "Enable" menu in the "Open With" dialog to enable opening with "Terminal.app" regardless of the file's extension.