Update api.py

f = open('/home/latyas/Pictures/xxx.png','rb')，这个自己改一下吧
Merge pull request #1 from ly0/patch-1

Update api.py