Clean copy of grid.py
And corresponding change to mcidasv.rbi
[1720]
Also works for e.g., makeVector formula
[1720]