How To Implement Autoencoder In Python Iteration