Added debug line into api.py