'Set an integer value for a given attribute.'

def set_int_value(self, name, value, num_bytes=1):

    value = round(value)
    b_value = value.to_bytes(num_bytes, byteorder='big')
    return self.set_value(name, list(b_value))
