title: Get the type of a Gtk widget , by python
body: <p>I need a method that acts like this :</p>
  
  <pre class="lang-py prettyprint-override"><code>def get_widget_type(widget_instance):
      return widget_type
      # widget_type : Gtk.Button , Gtk.Entry etc.
  </code></pre>