Export list of advance widths

I need to export a list of advance widths like this:
x, 780
Y, 900
Z, 890

any clues how to do this?

master = Font.selectedFontMaster
for glyph in Font.glyphs:
	layer = glyph.layers[master.id]
	print ("%s, %d" % (glyph.name, layer.width))

thank you so much Georg. :sunglasses: