PyMode is a Python 3.x library to enable typed interactions with the Mode Analytics v2 API.
$ pip install pymode
import os
from pymode import Mode
ORGANIZATION = os.environ["MODE_ORGANIZATION"]
TOKEN = os.environ["MODE_API_TOKEN"]
PASSWORD = os.environ["MODE_API_PASSWORD"]
mode = Mode(organization=ORGANIZATION, token=TOKEN, password=PASSWORD)