method set_attr name value =
    call_method_void sv "attr" [sv_of_string name; sv_of_string value]