human
Complete this python program:
def exec_prompt_glib(bus, prompt):
assistant
#Here is the Python program you requested.

    """Like :func:`exec_prompt`, but synchronous (uses loop from GLib
    API). Returns (*dismissed*, *unlocked*) tuple.
    """
    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])