Create ntree.py