added api.py
Merge branch 'master' of github.com:lrn-guru/lrn