Python code for Deep Learning