added support for commandline args in UpdateDevices.py