Reverted AgentError -> DMError changes
fix to devices.py for path to devices.json directory