Ich mache sowas immer mittels Konsole.
Du meldest dich als Root an und wechselst in den Ordner wo dein Pythonfile liegt.
Anschließend tippst du "python Programmname" ein. Dann führt er das Programm aus.

Edit:
Zeig mal dein Programm bitte.