expression tree in python