Update the Python logistic regression example

Updates the example to (1) read data from a file instead of generating it and (2) batch input records into one matrix for each block for more efficient use of NumPy.

When I tested this version it was substantially faster than the original one.