from __future__ import print_function import sys print [...] about the Python API, see: https://docs.python.org/2/library