Python script to split Spatialite countries indices into grids.