An implementation of the GTD method in Python.