This code is stale, I recommend you to check the Julia version RationalVectorFitting.jl. Use juliacall if you want to use it with Python.
Duplication of the Vector-Fitting algorithm in python.
This version was inspired by the one made by Phil Reinhold. I borrowed some of the changes made by Alexis Morvan (https://github.com/AlMrvn/vectfit_python).
The error of the fitting is too big when compared to the original MATLAB version. Probably the Least-Square system is being built wrongly. Also, relaxed version not implemented.