aGrUM/pyAgrum provide a set of classes and functions in order to easely work with Bayesian networks.
randomBN()
BNGenerator
BNDatabaseGenerator
InformationTheory
MeekRules
ExactBNdistance
GibbsBNdistance
JunctionTreeGenerator
EssentialGraph
MarkovBlanket
BayesNetFragment