Tree mapping Application (Python)