It was an early experimenter in democracy , electing its first mayor in 1199 , and was long a Protestant bastion in a Catholic country .
The town 's demographics have changed , and it is no longer primarily Protestant .