Python Reduce Initial Value Method Accounting