How To Implement Autoencoder In Python List