def uPowerDeviceGetAll(conn, device):
    '''
    Utility method that uses the given DBUS connection to call the
    UPower.GetAll method on the UPower device specified and returns pure
    python data.

    :param conn: DBUS connection
    :param device: the device
    '''
    log.debug("uPowerDeviceGetAll %s", device)
    return convert_DBUS_to_python(conn.call_method(device,
                              member='GetAll',
                              interface=DBUS_PROP_NAME,
                              destination=UPOWER_NAME,
                              format='s',
                              args=(UPOWER_DEVICE_IFACE,)
                              ).get_args()[0])