python port of algorithm for testing spike train stationarity (Gourevitch & Eggermont, 2007)