Add old peak finding
This re-introduces the old method for finding peaks, because
scipy.signal.find_peaks is only available in
scipy>=1.1.0, and this caused headaches for users.
So we now revert back to the old method in case
find_peaks cannot be imported.
Note that the old method should not stay in there forever and will be removed at a later date, when newer versions of
scipy are more widespread.