Python Autoencoder Dimensionality Reduction