grid spec with py.grid