Implementations/Sketches from Probabilstic Graphical Models in python