Compound Interest Function In Python