Dynamically updating plot in matplotlib,plt.draw()