Fixing Python API Client example

Minor updates to make this example functional