Matlab Autoencoder Feature Extraction Python