Hot fix for api.py