python script for plotting measurements.txt