Python mortgage amortization calculations