Fixed output path in api.py