I wrote a sublime-build file for python so I could execute scripts from the editor, this should work for anyone if they copy it into the Packages/Python directory and save it as “Python.sublime-build”
{
"cmd": "python", "-u", "$file"],
"file_regex": "^ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.py"
}