python reading and plot - stable version - still needs cleaning