NLTK Documentation
Installation
More
Returns all the tree positions in the given tree which are not leaf nodes.