How run a .py (python?)-script in Xcode?
You don't need to use Xcode. Just open Terminal and run:
python /path/to/file.py

For making an Xcode project for a python script: https://stackoverflow.com/questions/5276967/