python tools to create random trees