idx2ndarray is a Python module which can help you convert tabular data in IDX format (e.g. MNIST database, Yann LeCun, http://yann.lecun.com/exdb/mnist/), to numpy ndarray.