A python implementation of DEPTA