Python 3 compatibility fix in CoordinateGridPlot