Python Reduce Initial Value Math