removed model.py and added api.py