Use for mgrid for Py26 compatibility