added basics to api.py