if __name__ == '__main__':
    total_weights = {'prop_a': 3, 'prop_b': 3, 'prop_c': 8, 'prop_d': 0}
choose_items(item_list, total_weights, ['top', 'mid', 'bot'])
Python script to calculate aded combinations from a dictionary