convert dict comp in l3agent and neutronagent