Python library for DBN models