Python Deep Learning Code