def treelist_to_dict(treelist):
    """
    take list with entries
    (nodenumber, qname, lbranch_node_number, rbranch_node_number)
    return dict with dict entries
    nodenumber: {"question": qname, "no_branch": lb, "yes_branch": rb}
    """   
    treelist = [(node, {"question": qname, "no_branch": no_branch,\
               "yes_branch": yes_branch}) \
               for (node, qname, no_branch, yes_branch) in treelist]
    tree_dict = dict(treelist)
    return tree_dict