Peel, seed and cut squash into ½-inch cubes. Toss squash and shallots with oil, a pinch of salt and pepper, and thyme. Spread in a single layer (or close to it) on a heavy roasting pan, and roast for 20-25 minutes. After the first 10 minutes, stir occasionally, until squash and shallots are tender and caramelized.