Python package of weighted choice functions (including sampling and histogram)