def InterpolatePaths(path, labels):
 if ('%%LABEL%%' not in path):
  return dict([(path, None)])
 else:
  paths = {}
  for label in labels:
   paths[path.replace('%%LABEL%%', label)] = label
  return paths

def InterpolatePaths ( path , labels ) : if ( '%%LABEL%%' not in path ) : return dict ( [ ( path , None ) ] ) else : paths = { } for label in labels : paths [ path . replace ( '%%LABEL%%' , label ) ] = label return paths
interpolate paths with %%label%% markers .