besides , the race to take her place had been fought and won ; an election had taken place in the local labour party and a new candidate had been elected , in plenty of time before the next election .