def explodeDictKeys(d, out_tuple=(), _parent_tuple=()):
    """return a tuple of tuples providing 'breadcrumbs' through nested dictionary keys - given:
    d = {
        some: {
            nested:{
                dictionary:
                    {}
                }
            },
            other_branch:{}
    }

    explodeDictKeys(d) #will return

    (('some',), ('some', 'nested'), ('some', 'nested', 'dictionary'), ('some', 'other_branch'))

    see also: folderHierarchy(), getSubFolders()
    """

    for k in d.keys():
        this_tuple = _parent_tuple + (k,)
        out_tuple += (this_tuple,)
        out_tuple = explodeDictKeys(d[k], out_tuple, _parent_tuple=this_tuple)

    return out_tuple