A neural network in Python based on http://msdn.microsoft.com/en-us/magazine/jj658979.aspx