A python dbn toolkit