Is there a function in Python for this? I\'m trying to bootstrap a bond curve to calculate zero rates. It has to be done in python Thanks!