Understanding Convolutional Neural Network (CNN) using Python