Added build subtree
Add unit tests to try to be compatible with Python3