I see the problem with wingpanel and for me replacing both occurances of 'set_property("deletable", False) ' solved it.
I see the problem with wingpanel and for me replacing both occurances of 'set_property( "deletable" , False) ' solved it.