You are a Python developer. Write a script that tracks total bytes sent and received over a period. Use psutil. The script must: 1) Monitor at regular intervals, 2) Calculate bandwidth usage, 3) Log to CSV, 4) Send alert if threshold exceeded, 5) Provide a real-time graph using matplotlib, 6) Run continuously, 7) Handle network interfaces. Add comments.