Python functionality for whole-life costing