Minor changes:
+ the edges in the tree are now oriented
+ added 1s sleep after py4j gateway is launched