Financial Calculations in Python