Adding is_leaf method to node.py