Melt a generous knob of butter in a large frying pan over a medium heat. Add the pumpkin, onion, thyme if using, and some salt and pepper and sauté, partially covered and stirring from time to time, until the pumpkin is softened but still holds its shape. This should take about 20 minutes.