Update bayesnet.py