Python functions for fixed-income pricing and risk management