You are a Python developer. Write a script that uses Tweepy to stream tweets containing certain keywords. The script must: 1) Accept keywords from command line or file, 2) Stream real-time tweets, 3) Store tweets (text, user, timestamp) in a CSV file, 4) Perform sentiment analysis on each tweet using TextBlob, 5) Log errors and reconnections, 6) Provide a simple dashboard with Flask to display live tweets, 7) Use environment variables for API keys. Add comments.