Numpy Maximum Recursion Python