Python code for generating and visualizing quadrature and sparse grids