def RemoveDuplicateDependencies(targets):
 for (target_name, target_dict) in targets.iteritems():
  for dependency_key in dependency_sections:
   dependencies = target_dict.get(dependency_key, [])
   if dependencies:
    target_dict[dependency_key] = Unify(dependencies)

def RemoveDuplicateDependencies ( targets ) : for ( target_name , target_dict ) in targets . iteritems ( ) : for dependency_key in dependency_sections : dependencies = target_dict . get ( dependency_key , [ ] ) if dependencies : target_dict [ dependency_key ] = Unify ( dependencies )
makes sure every dependency appears only once in all targetss dependency lists .