I developed the following Python modules for use in my own research projects. Even if some of the tools are already available in the standard toolboxes, my implementations are generally faster (Numba and its multithreading capabilities are extensively used) and tailored to the typical workflow in quantitative macroeconomics. Please cite the source if my codes are used for academic work. Enjoy!
PS. No implicit or explicit warranty is provided. Use my codes at your own risk. Consider that your PC may blow up, reformat itself, or you may be prevented from publishing your stuff on Econometrica.
Linear and non-linear interpolation: