This script starts with some sets of unison vectors, and ends up with some MOS scales. You'll need my other script and Numeric Python. Alternatively, you could take a peek at the output.
There's also a little script for using text files to specify the unison vectors.