You need python installed on your system. Then you can run this in the terminal in the correct directory:
python gameover.py
You can execute your file by using this:
python /Users/luca/Documents/python/gameover.py
You can also run the file by moving to the path of the file you want to run and typing:
python gameover.py