This fixes a pylint complain on using .keys() while looping through dictionary. Signed-off-by: Daniel Leung <daniel.leung@intel.com>