Sparse Matrix In Data Structure In Python