Java Array Stream Reduce Example Python File