Emdn DeviceUtil.py

define method.