Python implementation of the haplogrep alogorithm