code: def bandpass_filter(rate=None, low=None, high=None, order=None):
      
      assert low < high
      assert order >= 1
      return signal.butter(order,
                           (low / (rate / 2.), high / (rate / 2.)),
                           'pass')
docs: Butterworth bandpass filter.