I am looking for a Python implementation of this algorithm, for which the article linked here references FORTRAN 66. Really, I am trying to run a Terry-Hoeffding test in Pyt