Python probabilistic graphical models