Peak detection algorithm python.