cyclostratigraphic analysis helper classes and methods in pure python