Copying glyph names as a python list would be more user-friendly if the list had spaces instead of line breaks. The way it is now I often find myself pasting many many lines of glyph names into just a few lines of code
It is very easy to go from many lines to single line in text editors that allow multiline editing (e.g., TextMate, SublimeText and Atom). It is a bit more tedious the other way around.
To keep the glyph names on multiple lines has other advantages as well: git and diff workflows, overview, editing for non-coders, etc.