Complete the steps described in the quickstart instructions, and in about five minutes you'll have a simple Python command-line application that makes requests to the Google Tasks API.
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
After following the quickstart setup instructions, run the sample:
python quickstart.py