import dbus
bus = dbus.SystemBus()
dev = bus.get_object('org.freedesktop.Hal',
    '/org/freedesktop/Hal/devices/computer_logicaldev_input')
iface = dbus.Interface(dev, 'org.freedesktop.Hal.Device')
props = iface.GetAllProperties()
print('\n'.join('%s: %s' % (k, props[k]) for k in props))
DBus interface properties