How To Use Reduce Function In Python