Correcting mistaken handing of list to os.environ