A python implementation of convolutional network for digit recognition