human
I wrote the below code

    from gi.repository import GLib
    loop = GLib.MainLoop()
    result = []
    def callback(dismissed, unlocked):
        result.append(dismissed)
        result.append(unlocked)
        loop.quit()
    exec_prompt(bus, prompt, callback)
    loop.run()
    return (result[0], result[1])

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

def exec_prompt_glib(bus, prompt):