Python script to visualize time-series data