from NDesk.DBus import * ibus = Bus.Session.GetObject("org.freedesktop.DBus", ObjectPath ("/")) for name in ibus.ListNames(): print name