Deep Neural Network Python Code