adding original dbn.py file