Create api.py

Temporary strucutre