device.py: coments improved