Python Define Class Inside Class Python 2d Interpolation In Matlab