typo fix in api.py