Calculating Compound Interest In Python