A python module for probabilistic graphical models