remove dict comprehensions from dhcpagent