Python code for the hybrid extrinsic coagulation model