def get_maxima(lineshape):
    """
    Crude function that returns maxima in the lineshape.

    Parameters
    ----------
    lineshape : tuple of frequency, intensity arrays

    Returns
    -------
    a list of (frequency, intensity) tuples for individual maxima.
    """
    res = []
    for n, val in enumerate(lineshape[1][1:-2]):
        index = n + 1
        lastvalue = lineshape[1][index - 1]
        nextvalue = lineshape[1][index + 1]
        if lastvalue < val and nextvalue < val:
            print('MAXIMUM FOUND AT: ')
            print((lineshape[0][index], val))
            res.append((lineshape[0][index], val))
    return res
