How To Extract Data From Graph In Python