would it make sense to compare to scipy.signal.resample?