Preheat the oven to 190°C/375°F/Gas mark 5. Put the olive oil in a roasting tin or large pie dish and add the beef, potatoes, onions, thyme, flour and cayenne pepper. Toss well together and season to taste. Roast for 25 minutes until tender, turning the beef and vegetables occasionally to ensure they cook evenly.
Remove the roasting tin from the oven, add the frozen petit pois and then stir in the crème frâiche, stock and parsley. Leave to cool slightly. Lay the pastry over the pie dish, tucking in the edges down the sides. Brush the rim with water to help it stick and then brush the top of pie with beaten egg to glaze.
Bake the beef and potato pie in oven for 25-30 minutes, until pastry has risen and is golden and the beef and vegetables are tender. If you find it’s browning too quickly, just reduce the oven temperature a little.
To serve, bring the pie directly to the table and serve on to warmed serving plates, handing round a bowl of steamed broccoli florets so everyone can help themselves.