Update mtree.py

Fix python syntax