AngularJS and Flask Sitting in a Tree