Clean up and improve the Glpyhs part

This script needs to latest version of objectGS and GSPen from
https://github.com/schriftgestalt/Glyphs-Scripts
clean up the error checking
Merge pull request #2 from schriftgestalt/master

Pull @schriftgestalt’s branch into main branch