No penalty imposed by or pursuant to § 1-108 or any other section of this code or other ordinance of the town shall interfere with the right of the town to apply to the proper courts of the state for a writ of mandamus, an injunction, or other appropriate relief in the case of violations of this code or other ordinances.