I wrote python version of interp2(z, xi, yi,’linear’) from matlab https://github.com/serge-m/pyinterp2