Algorithm in Python 2.7 for amplitude, frequency, bandwidth and modulation identification of a signal