A simple python implementation of an artificial neural network