Update api.py grammar fix