Python code to produce STL geometry files from 2D numpy arrays (matrices)