Python how to read data from text file and draw graph from it