def tilesetCoordinates(filename):
 coords = MBTiles.list_tiles(filename)
 count = len(coords)
 for (offset, coord) in enumerate(coords):
  (yield (offset, count, coord))

def tilesetCoordinates ( filename ) : coords = MBTiles . list_tiles ( filename ) count = len ( coords ) for ( offset , coord ) in enumerate ( coords ) : ( yield ( offset , count , coord ) )
generate a stream of tuples for seeding .