Update api.py
Merge pull request #128 from thecount92/master

Update api.py