Hash-based sampling library for Python