Adding is_leaf method to node.py

Not sure if you want/need this. Is useful for walking the tree and finding when you have hit a leaf.