Converting MNIST Data to CSV or Individual Files using Python