Running a Python  program on Mac OS X
With Python 2.7.10

Right click exio.py and save it.
"save link as" or "download linked file"

Open the terminal app in Applications/Utilities

type "/usr/bin/python ~/Downloads/exio.py" (Assuming you saved it in Downloads)
~ stands for your user directory.

Run on Android 
Download QPython
Long press exio-and.py and select "Save Link".
Default location will be /storage/emulated/0/Download
Using your favorite file manager move exio.py to
 /storage/emulated/0/com.hipipal.qpyplus/scripts3
 
In QPython3 select "Programs"
Select exio-and.py
Select Run

Links:
Hello World in Python on Mac OS X
Introduction to the Python Interpreter, Part 1: Function Objects - Allison Kaptur

last updated 4 Mar 2016