human
I wrote the below code

    class w3af_message_dialog(gtk.MessageDialog, ):
        def dialog_response_cb(self, widget, response_id):
            '\n                                                http://faq.pygtk.org/index.py?req=show&file=faq10.017.htp\n                                                '
            self.destroy()
        def dialog_run(self):
            '\n                                                http://faq.pygtk.org/index.py?req=show&file=faq10.017.htp\n                                                '
            if (not self.modal):
                self.set_modal(True)
            self.connect('response', self.dialog_response_cb)
            self.show()
    dlg = w3af_message_dialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, message)
    dlg.set_icon_from_file(W3AF_ICON)
    dlg.set_title('Error')
    dlg.dialog_run()
    return

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def FriendlyExceptionDlg(message):