BayesNet.py: refactoring
BayesNet.py: remove the unnecessary `vars` property from `Net`