def parse_vars(vars):
    """
    Transform a list of NAME=value environment variables into a dict
    """

    retval = {}

    for var in vars:
        key, value = var.split("=", 1)
        retval[key] = value

    return retval