fix for single result

When there's only one result returned, the script expects a list, but it
gets a single result. In this update I removed the debug logging.