update the apis.py file