Maximum Contiguous Subarray Dynamic Programming In Python