A browser page can\'t write to your CSV directly, so this builds the exact safe log_entry.py command — the script computes the id, quotes, and keeps the file valid.