. . "In the application of this subsection to an election of councillors in Scotland, the reference to the High Court is to an election court, but, if the election was a local government election, the sheriff may act instead of the election court." . .