human
Complete the below
def exec_prompt_glib(bus, prompt):

    ''''Like :func:`exec_prompt`, but synchronous (uses loop from GLib
    API). Returns (*dismissed*, *unlocked*) tuple.'
    '''

Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    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])