Python library for chaossorting