for key, val in sorted(os.environ.items()): print(key) vals = sorted(val.split(os.pathsep)) print(' ' + '\n