Calculating Claims Reserve Using Python