Maximum Subarray, LeetCode #53, Python