Python 3 support for ctree.