changed method of using pyhton plot, now using system calls