credit risk modeling in python