Maximum Subarray Python Solution