Tree operations in Python

Great,

thanks Chris!