Consistent sampling library for Python