Generate a Ghpython script in unit z to generate gradient slopes

Hi, is it possible for someone here to create a ghpython script to generate the same result of the design I have created in grasshopper using native components. I used metaballs to generate the curves. If possible id like to create a ghpython script in the z direction to connect the lines to form hill-like structures, to resemble a topography. Do drop the file in the reply section for me to view. Thanks~ (24.5 KB)