import json # Send the status to the console for interpretation def log_step(step, progress, message): print(json.dumps({ "step": step, "progress": progress, "message": message }), flush=True)