Update device.py

add update function for "update raid" testing