Python Cumulative Product Definition Example