Update api.py

Fixing python api client example