A toolkit for simulating multi-object spectrographs