MARQOV: A modern framework for classical spin models on general topologies