Calculate Gain of Amp and Find -3dB point Python