How to Use Python's Reduce Function Efficiently