Deep Belief Network Python