code: def listdict2envdict(listdict):
      
      for key in listdict:
          if isinstance(listdict[key], list):
              listdict[key] = os.path.pathsep.join(listdict[key])
      return listdict
docs: Dict of lists --> Dict