Python Find Local Maxima In Array