Rim weighting in python. Default None: cum_weights: Optional.