Find Peaks Function Python Format