Thank you. That really simplified the code. I won't say what I had done before, but your response was similar to a shell script I had used to create the data files used to create individual classes. doh.
Now, I will work on two more aspects:
directing the output to a formatted window using glade
providing a way to select/import fonts