Python autoencoder for image denoising