updated settings.py to use configuration file, updated UpdateDevices.py to get its path from os.path