@RoyMaster4
I honestly have no idea what gedit is, but if it's set as the default program for opening .py files, it'd make sense that that kind of error would occur. Make sure that Python 2.7.11 is set as the default program for running .py files.
Could you send me a copy of your workspace...