Find Peaks Function Python Definition