Create mnist.py

This loads the MNIST data accepting the path to the MNIST data and returns numpy arrays of 28x28 images.

It's adapted from work on cvxopt.org