how to make real time plot in python