Update devices.py