weighted quantiles with Python