Create detect_peaks.py

detect_peaks
for usage see: http://nbviewer.ipython.org/github/demotu/BMC/blob/master/notebooks/DetectPeaks.ipynb