Python now writes json tree to file on creation and editing of nodes -- Modal preview window added.