Can you try changing the modify_font_by_name line to
button#child#misc#modify_font_by_name "Sans 16";
Now, what happens is that the that button#child gives the button label and the font is modified on label.
You could have been done that error in C as well. Actually, googling the C function name is what helped me find the cause.