Python Reduce Function Example