capm python