An implementation of a neural network in Python