Example of how to use the Python API