def list_path_traversal(path):
    out = [path]
    (head, tail) = os.path.split(path)
    if tail == '':
        # paths with trailing separators will return an empty string
        out = [head]
        (head, tail) = os.path.split(head)
    while head != out[0]:
        # loop until head is the same two consecutive times
        out.insert(0, head)
        (head, tail) = os.path.split(head)
    return out
testing spinning up workers using fabric
dataset/ETHPy150Open saltstack/salt/salt/utils/verify.py/list_path_traversal--crossover with--dataset/ETHPy150Open nicholaskuechler/autoscale-rackspacecloud-fabric-celery/auto-scale.py/start_workers_with_fabric