fixed get_cpd method of TabularCPD