Maximum Subarray Problem Python Compiler With Scipy