Complete the steps described in the Google Apps Script API Python Quickstart, and in about five minutes you'll have a simple Python command-line application that makes requests to the Google Apps Script API.
pip install -r requirements.txt
python quickstart.py