Update api.py

Fixing python api client example
Merge pull request #916 from breerly/patch-1

Fixing Python API Client example