Section 69. The supreme judicial court for the county where the town is situated shall have jurisdiction on petition of the department or of twenty taxable inhabitants of the town to compel the fixing of prices by the town in compliance with sections fifty-seven and fifty-eight, to prevent any town from purchasing, operating or selling a gas or electric plant in violation of any provision of this chapter, and generally to enforce compliance with the terms and provisions thereof relative to the manufacture or distribution of gas or electricity by a town.