Dimensionality Reduction using an Autoencoder in Python