len(lb.nodes) fails if lb doesn't have attribute nodes, 338 do_list