Implemenation of Hinton's Deep Belief Networks in python