def cookies2har(cookies):
    if isinstance(cookies, QVariant):
        cookies = cookies.toPyObject()
    return [cookie2har(cookie) for cookie in (cookies or [])]
Does a cascade of re-balances, but only for each child node.
dataset/ETHPy150Open scrapinghub/splash/splash/har/qt.py/cookies2har--crossover with--dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/trees/binary_trees.py/NaiveBinarySearchTree.rebalance_children