Fix pylint warnings in update_device.py am: 1048559a5c am: 80a5aa2984 am: d0338337bf
am: 6fa571ead6

Change-Id: I97befffd0d81350aba8e27e1fd10c12a9a1256a0