Update to the create_grid.py

Corrected the manipulation of contour lines for when there are more
than one contours for the same value. It works both ways now. There
must be a more elegant way to do this.