Simple python code snippets for training and using neural networks with numpy