Added debug line in api.py