def write_to_lines(glyphs_object):
string = UnicodeIO()<EOL>writer = Writer(string)<EOL>writer.write(glyphs_object)<EOL>return string.getvalue().splitlines()<EOL>
Use the Writer to write the given object to a UnicodeIO.
Return an array of lines ready for diffing.