Python implementation of Topological Anomaly Detection (TAD) per Gartley (2009)