Switching index.py over to api
Merge pull request #30 from mekarpeles/refactor/api

Switching index.py over to api