I'm also having a problem where Python closes right after I open the program..
Shift+Right-click the folder you have the script on → "Open command prompt here" (or something like that) → RunProgram.py and hir Enter.
Window shouldn't close and it should tell you if there's an error so you can post it here.