def normalize_and_reduce_paths(paths):
 reduced_paths = []
 for p in paths:
  np = os.path.normpath(p)
  if (np not in reduced_paths):
   reduced_paths.append(np)
 return reduced_paths

def normalize_and_reduce_paths ( paths ) : reduced_paths = [ ] for p in paths : np = os . path . normpath ( p ) if ( np not in reduced_paths ) : reduced_paths . append ( np ) return reduced_paths
return a list of normalized paths with duplicates removed .