def envdict2listdict(envdict):
 sep = os.path.pathsep
 for key in envdict:
  if (sep in envdict[key]):
   envdict[key] = [path.strip() for path in envdict[key].split(sep)]
 return envdict

def envdict2listdict ( envdict ) : sep = os . path . pathsep for key in envdict : if ( sep in envdict [ key ] ) : envdict [ key ] = [ path . strip ( ) for path in envdict [ key ] . split ( sep ) ] return envdict
dict --> dict of lists .