Adding network3.py and expand_mnist.py